#pragma once

#include	<Net.h>
#include	<Singleton.h>

#define		GCenter	CenterConnector::Instance()

class CenterConnector : public IBaseConnector, public ISingleton<CenterConnector> {
public:
	CenterConnector() : IBaseConnector("center") {}
	virtual ~CenterConnector() {}

	virtual void OnConnected() override;
	virtual void OnReceive(Protocol * msg) override;
};